<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Class seed_seq</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../boost_random/reference.html#doxygen.headers.seed__seq_8hpp" title="Header &lt;boost/random/seed_seq.hpp&gt;">
<link rel="prev" href="ranlux_8hpp_1abbbf73f032d8bf9ea7f2b1048c6770b0.html" title="Type definition ranlux64_4">
<link rel="next" href="classboost_1_1random_1_1shuffle__order__engine.html" title="Class template shuffle_order_engine">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="ranlux_8hpp_1abbbf73f032d8bf9ea7f2b1048c6770b0.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_random/reference.html#doxygen.headers.seed__seq_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="classboost_1_1random_1_1shuffle__order__engine.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.headers.classboost_1_1random_1_1seed__seq"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class seed_seq</span></h2>
<p>boost::random::seed_seq</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../boost_random/reference.html#doxygen.headers.seed__seq_8hpp" title="Header &lt;boost/random/seed_seq.hpp&gt;">boost/random/seed_seq.hpp</a>&gt;

</span>
<span class="keyword">class</span> <a class="link" href="classboost_1_1random_1_1seed__seq.html" title="Class seed_seq">seed_seq</a> <span class="special">{</span>
<span class="keyword">public</span><span class="special">:</span>
  <span class="comment">// types</span>
  <span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">uint_least32_t</span> <a name="doxygen.headers.classboost_1_1random_1_1seed__seq_1a0619408f671cad4a3f880270c894ab87"></a><span class="identifier">result_type</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="classboost_1_1random_1_1seed__seq.html#id-1_3_32_5_6_40_1_1_1_3-bb">public member functions</a></span>
  <a class="link" href="classboost_1_1random_1_1seed__seq.html#doxygen.headers.classboost_1_1random_1_1seed__seq_1a85db7bcd6180ec1cd4b7a18b3746ca8d"><span class="identifier">seed_seq</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> <a class="link" href="classboost_1_1random_1_1seed__seq.html#doxygen.headers.classboost_1_1random_1_1seed__seq_1a0282650ee6ecaeaae9edf5798dae4925"><span class="identifier">seed_seq</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Iter<span class="special">&gt;</span> <a class="link" href="classboost_1_1random_1_1seed__seq.html#doxygen.headers.classboost_1_1random_1_1seed__seq_1a035e44acdd4a69ec9509ae89bcde1714"><span class="identifier">seed_seq</span></a><span class="special">(</span><span class="identifier">Iter</span><span class="special">,</span> <span class="identifier">Iter</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Range<span class="special">&gt;</span> <span class="keyword">explicit</span> <a class="link" href="classboost_1_1random_1_1seed__seq.html#doxygen.headers.classboost_1_1random_1_1seed__seq_1a000a67badcb8c3f197aac1d01fd5baea"><span class="identifier">seed_seq</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">Range</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Iter<span class="special">&gt;</span> <span class="keyword">void</span> <a class="link" href="classboost_1_1random_1_1seed__seq.html#doxygen.headers.classboost_1_1random_1_1seed__seq_1a85e3b3b288412b9b775d26cb8d922d90"><span class="identifier">generate</span></a><span class="special">(</span><span class="identifier">Iter</span><span class="special">,</span> <span class="identifier">Iter</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a class="link" href="classboost_1_1random_1_1seed__seq.html#doxygen.headers.classboost_1_1random_1_1seed__seq_1adfcc0943ee6534df56933701a2065ba8"><span class="identifier">size</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Iter<span class="special">&gt;</span> <span class="keyword">void</span> <a class="link" href="classboost_1_1random_1_1seed__seq.html#doxygen.headers.classboost_1_1random_1_1seed__seq_1a79d88752048f936b0f47b5cb946bc4f4"><span class="identifier">param</span></a><span class="special">(</span><span class="identifier">Iter</span><span class="special">)</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.32.5.6.39.3.4"></a><h2>Description</h2>
<p>The class <code class="computeroutput"><a class="link" href="classboost_1_1random_1_1seed__seq.html" title="Class seed_seq">seed_seq</a></code> stores a sequence of 32-bit words for seeding a  <a class="link" href="../../boost_random/reference.html#boost_random.reference.concepts.pseudo_random_number_generator" title="Pseudo-Random Number Generator">pseudo-random number generator</a> . These words will be combined to fill the entire state of the generator. </p>
<div class="refsect2">
<a name="id-1.3.32.5.6.39.3.4.3"></a><h3>
<a name="id-1_3_32_5_6_40_1_1_1_3-bb"></a><code class="computeroutput">seed_seq</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><a name="doxygen.headers.classboost_1_1random_1_1seed__seq_1a85db7bcd6180ec1cd4b7a18b3746ca8d"></a><span class="identifier">seed_seq</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p>Initializes a <a class="link" href="classboost_1_1random_1_1seed__seq.html" title="Class seed_seq">seed_seq</a> to hold an empty sequence. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> <a name="doxygen.headers.classboost_1_1random_1_1seed__seq_1a0282650ee6ecaeaae9edf5798dae4925"></a><span class="identifier">seed_seq</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span> <span class="special">&amp;</span> il<span class="special">)</span><span class="special">;</span></pre>
<p>Initializes the sequence from an initializer_list. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Iter<span class="special">&gt;</span> <a name="doxygen.headers.classboost_1_1random_1_1seed__seq_1a035e44acdd4a69ec9509ae89bcde1714"></a><span class="identifier">seed_seq</span><span class="special">(</span><span class="identifier">Iter</span> first<span class="special">,</span> <span class="identifier">Iter</span> last<span class="special">)</span><span class="special">;</span></pre>
<p>Initializes the sequence from an iterator range. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Range<span class="special">&gt;</span> <span class="keyword">explicit</span> <a name="doxygen.headers.classboost_1_1random_1_1seed__seq_1a000a67badcb8c3f197aac1d01fd5baea"></a><span class="identifier">seed_seq</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">Range</span> <span class="special">&amp;</span> range<span class="special">)</span><span class="special">;</span></pre>
<p>Initializes the sequence from Boost.Range range. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Iter<span class="special">&gt;</span> <span class="keyword">void</span> <a name="doxygen.headers.classboost_1_1random_1_1seed__seq_1a85e3b3b288412b9b775d26cb8d922d90"></a><span class="identifier">generate</span><span class="special">(</span><span class="identifier">Iter</span> first<span class="special">,</span> <span class="identifier">Iter</span> last<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Fills a range with 32-bit values based on the stored sequence.</p>
<p>Requires: Iter must be a Random Access Iterator whose value type is an unsigned integral type at least 32 bits wide. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a name="doxygen.headers.classboost_1_1random_1_1seed__seq_1adfcc0943ee6534df56933701a2065ba8"></a><span class="identifier">size</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Returns the size of the sequence. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Iter<span class="special">&gt;</span> <span class="keyword">void</span> <a name="doxygen.headers.classboost_1_1random_1_1seed__seq_1a79d88752048f936b0f47b5cb946bc4f4"></a><span class="identifier">param</span><span class="special">(</span><span class="identifier">Iter</span> out<span class="special">)</span><span class="special">;</span></pre>
<p>Writes the stored sequence to iter. </p>
</li>
</ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2000-2005 Jens Maurer<br>Copyright © 2009, 2010 Steven Watanabe<br>Copyright © 2022-2025 Matt
      Borland<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="ranlux_8hpp_1abbbf73f032d8bf9ea7f2b1048c6770b0.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_random/reference.html#doxygen.headers.seed__seq_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="classboost_1_1random_1_1shuffle__order__engine.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
